Started with the separated DB with the given code
[RRRRHHHH_Code] / ruralHouses client / src / gui / StartWindow.java
index e938084..3129bad 100644 (file)
@@ -19,7 +19,6 @@ import javax.swing.JPanel;
 import javax.swing.SwingConstants;
 import javax.swing.UIManager;
 
-import configuration.ConfigXML;
 
 @SuppressWarnings("deprecation")
 public class StartWindow extends JFrame {
@@ -29,7 +28,6 @@ public class StartWindow extends JFrame {
        private JPanel jContentPane = null;
        private JButton boton2 = null;
        private JButton boton3 = null;
-       private static configuration.ConfigXML c;
        private JLabel lblNewLabel;
 
        public static void main(String[] args) {
@@ -42,16 +40,12 @@ public class StartWindow extends JFrame {
 
                try {
 
-                       c = ConfigXML.getInstance();
-
-                       System.setProperty("java.security.policy", c.getJavaPolicyPath());
+                       System.setProperty("java.security.policy", "java.policy");
 
                        System.setSecurityManager(new RMISecurityManager());
 
                        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
 
-                       c = configuration.ConfigXML.getInstance();
-
                } catch (com.db4o.ext.DatabaseFileLockedException e) {
                        a.lblNewLabel
                                        .setText("Database locked: Do not run BusinessLogicServer or BusinessLogicServer!!");